//
//  LoadMore.m
//  models
//
//  Created by minfo on 13-8-19.
//  Copyright (c) 2013年 minfo. All rights reserved.
//

#import "LoadMore.h"

@implementation LoadMore
@synthesize loadingAni;
@synthesize loadingTitle;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor=[UIColor clearColor];
        [self loadingView];
    }
    return self;
}
#pragma mark 上拉加载更多
-(void)loadingView
{
    loadingAni = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(90, 18, 0, 0)];
    loadingAni.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
    [self addSubview:loadingAni];
    [loadingAni stopAnimating];
    loadingTitle=[[UILabel alloc] initWithFrame:CGRectMake(0, 7, self.frame.size.width, 22)];
    loadingTitle.backgroundColor=[UIColor clearColor];
    loadingTitle.font=[UIFont systemFontOfSize:13];
    loadingTitle.textAlignment=NSTextAlignmentCenter;
    loadingTitle.textColor=[UIColor grayColor];
    loadingTitle.text=@"上拉加载更多";
    [self addSubview:loadingTitle];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
